<template>
  <div class="body">
    <v-head></v-head>
    <Row class="restand">
        <i-col class="standkepu" span="22">
          <div class="detail">
            <div class="standtitle">{{this.title}}</div>
            <div class="standfenge1"></div>
            <div class="shijianzhoux">
              <Row>
                <i-col span="6" class="bookimage">
                  <img class="bookfeng" :src="'http://http://www.imisinfo.org.cn/byht/'+this.metaDescription" alt="">
                </i-col>
                <i-col span="17" class="bookcontent">
                  <p class="bookjianjie" v-html="this.content"></p>
                </i-col>
              </Row>
            </div>
          </div>
        </i-col>
    </Row>
    <v-foot></v-foot>
    <Back-top></Back-top>
  </div>
</template>
<script>
import {neturl} from '../assets/js/common'
export default {
  name: 'seniorsearch',
  data () {
    return {
      content: '',
      title: '',
      metaDescription: ''
    }
  },
  methods: {
  },
  created () {
    // this.model1 = this.cityList[0].value
    this.userinfo = this.$cookie.get('user')
    this.userinfo = JSON.parse(this.userinfo)
    // 已登录
    if (this.userinfo != null) {
      this.islogin = true
      this.islog = false
      this.username = this.userinfo.realName
    }
    // 获取图书详情
    let newid = this.$route.query.id
    let uploadaa = { data: newid }
    this.$axios.post(neturl + '/by/book/getitem', uploadaa
    ).then(res => {
      console.log(res)
      this.$Spin.hide()
      let it = res.data.data.result
      this.title = it.title
      this.content = it.content
      this.metaDescription = it.metaDescription
    })
  }
}
</script>

<style scoped>
  @import '../assets/css/bookdetail.css';
</style>
